// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.Table;

/**
 * CheckoutAgreement generated by hbm2java
 */
@Entity
@Table(name = "checkout_agreement", catalog = "magento")
public class CheckoutAgreement implements java.io.Serializable {

	private Integer agreementId;
	private String name;
	private String content;
	private String contentHeight;
	private String checkboxText;
	private short isActive;
	private short isHtml;
	private Set coreStores = new HashSet(0);

	public CheckoutAgreement() {
	}

	public CheckoutAgreement(short isActive, short isHtml) {
		this.isActive = isActive;
		this.isHtml = isHtml;
	}

	public CheckoutAgreement(String name, String content, String contentHeight,
			String checkboxText, short isActive, short isHtml, Set coreStores) {
		this.name = name;
		this.content = content;
		this.contentHeight = contentHeight;
		this.checkboxText = checkboxText;
		this.isActive = isActive;
		this.isHtml = isHtml;
		this.coreStores = coreStores;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "agreement_id", unique = true, nullable = false)
	public Integer getAgreementId() {
		return this.agreementId;
	}

	public void setAgreementId(Integer agreementId) {
		this.agreementId = agreementId;
	}

	@Column(name = "name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "content", length = 65535)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "content_height", length = 25)
	public String getContentHeight() {
		return this.contentHeight;
	}

	public void setContentHeight(String contentHeight) {
		this.contentHeight = contentHeight;
	}

	@Column(name = "checkbox_text", length = 65535)
	public String getCheckboxText() {
		return this.checkboxText;
	}

	public void setCheckboxText(String checkboxText) {
		this.checkboxText = checkboxText;
	}

	@Column(name = "is_active", nullable = false)
	public short getIsActive() {
		return this.isActive;
	}

	public void setIsActive(short isActive) {
		this.isActive = isActive;
	}

	@Column(name = "is_html", nullable = false)
	public short getIsHtml() {
		return this.isHtml;
	}

	public void setIsHtml(short isHtml) {
		this.isHtml = isHtml;
	}

	@ManyToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "checkout_agreement_store", catalog = "magento", joinColumns = { @JoinColumn(name = "agreement_id", nullable = false, updatable = false) }, inverseJoinColumns = { @JoinColumn(name = "store_id", nullable = false, updatable = false) })
	public Set getCoreStores() {
		return this.coreStores;
	}

	public void setCoreStores(Set coreStores) {
		this.coreStores = coreStores;
	}

}
